package com.example.aircraftticketingsystemserver.mapper;

import com.example.aircraftticketingsystemserver.entity.Ticket;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxz
 * @since 2024-08-19
 */
public interface TicketMapper extends BaseMapper<Ticket> {
    /**
     * 更新机票
     */
    void updateTicket(Ticket ticket);
    /**
     * 查询机票
     * flightId
     */
    List<Ticket> selectTicketByFlightId(Integer flightId);
    /**
     * 删除机票
     */
    void deleteTicketByTicketId(Integer ticketId);

}
